package strangeCharacters;

public class Online {

	
	public static void main(String[] args)
	{
	    char ascii0 = 0; // Characters can be defined by their ASCII value
	    char[] hello = ("Here comes a " + ascii0 + "new line.").toCharArray(); // Create a String, which contains an ASCII 0 and convert it to a char array
	    System.out.println(new String(hello)); // Print it (just for checking)
	 
	    for(int i=0;i<hello.length;i++)
	    {
	        if(hello[i] == 0) hello[i] = '\n'; // If it finds a ASCII 0, it should replace it by a new line character
	    }
	    System.out.println("\n" + new String(hello)); // Print the result (just for checking)
	}

}
